import request from 'src/utils/request' // 添加拦截器

// 获取设备状态统计的信息
export function getsbStatus(query) {
    return request({
        url: '/analysis-mang/shop-floor/equip/status/',
        method: 'get',
        params: query
    })
}

// 获取当日产量的信息
export function getWorkCounts(query) {
    return request({
        url: '/analysis-mang/shop-floor/equip/work-counts/',
        method: 'get',
        params: query
    })
}

// 获取设备效率OEE的信息
export function getOee(query) {
    return request({
        url: '/analysis-mang/shop-floor/equip/oee/',
        method: 'get',
        params: query
    })
}

// 获取设备分析统计排序的信息
export function getfxChartDate(query) {
    return request({
        url: '/analysis-mang/shop-floor/equip/analysis/sort/',
        method: 'get',
        params: query
    })
}

// 获取设备原因分析的信息
export function getyyChartDate(query) {
    return request({
        url: '/analysis-mang/shop-floor/equip/analysis/reason/',
        method: 'get',
        params: query
    })
}